Release 10.1A: OpenEdge Development:
Progress 4GL Reference


HEX-ENCODE function

Converts a RAW value into a character string consisting of an even number of hexadecimal digits (0 through 9 and A through F).

Syntax

HEX-ENCODE( expression ) 

expression

A RAW expression containing the value you want to convert. If the expression is the Unknown value (?), the result is the Unknown value (?). If the expression is a zero-length value, the result is a zero-length value.

Example

The following code fragment illustrates how to use the HEX-ENCODE function:

DEFINE VARIABLE MyUUID as RAW. 
DEFINE VARIABLE vChar as CHARACTER. 
MyUUID = GENERATE-UUID. 
vChar = HEX-ENCODE(MyUUID). 

See also

HEX-DECODE function


Copyright © 2005 Progress Software Corporation
www.progress.com
Voice: (781) 280-4000
Fax: (781) 280-4095